x86/efi: properly handle 0 in pixel reserved bitmask
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Fri, 25 Oct 2019 10:03:35 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 10:03:35 +0000 (12:03 +0200)
commit8bfcd2e5fd1c6a8a64cd29aab6114826cd5e5be5
treee991798fb2beabfa055b2460cef170a97f31d385
parentfb1db3046029fc71cfc3b9ccb1e1ff3917f2e944
x86/efi: properly handle 0 in pixel reserved bitmask

In some graphics modes firmware is allowed to return 0 in pixel reserved
bitmask which doesn't go against UEFI Spec 2.8 (12.9 Graphics Output Protocol).

Without this change non-TrueColor modes won't work which will cause
GOP init to fail - observed while trying to boot EFI Xen with Cirrus VGA.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 521a1445510a30873aec471194045e7f4b5e8d75
master date: 2019-10-10 16:50:50 +0200
xen/arch/x86/efi/efi-boot.h